package com.xbongbong.pro.statistic.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * （批量）删除指标/图表参数
 * @author zcp
 * @version v1.0
 * @date 2019/1/23 11:20
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ChartDeleteDTO extends BaseDTO {

    private static final long serialVersionUID = 5830672320215177136L;
    /**
     * 要删除的图表/指标id数组
     * [1, 2]
     */
    @NotEmpty(message = "{dto.msg.chartDelete.idIn.NotEmpty}")
    private List<Long> idIn;
    /**
     * 删除标记
     * 该字段不要暴露给前端
     */
    private Integer del;

    public ChartDeleteDTO() {
        del = 0;
    }
}
